<%@page import="com.javalong.androidmorning.pojo.ResponseMessage"%>
<%@ page language="java" contentType="text/html;charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<form id="pagerForm" action="article/listByPage" method="post">
	<input type="hidden" name="pageNum" value="1" />
	<!--【必须】value=1可以写死-->
	<input type="hidden" name="numPerPage" value="20" />
	<!--【可选】每页显示多少条-->
</form>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="article/addjsp"
				target="dialog"><span>添加</span></a></li>
			<li><a class="delete"
				href="article/delete?id={sid_article}"
				target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit"
				href="article/updatejsp?id={sid_article}"
				target="dialog"><span>修改</span></a></li>
			<li class="line">line</li>
		</ul>
	</div>
	<table class="table" layoutH="138">
		<thead>
			<tr>
				<th width="80px">id</th>
				<th width="100px">文章标题</th>
				<th width="120px">文章描述</th>
				<th width="100px">图片链接</th>
				<th width="100px">文章链接</th>
				<th width="100px">回复编号</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${articleList}" var="k">
				<tr target="sid_article" rel="${k.id}">
					<td>${k.id}</td>
					<td>${k.title}</td>
					<td>${k.description}</td>
					<td>${k.picUrl}</td>
					<td>${k.url}</td>
					<td>${k.resId}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span> <select class="combox" name="numPerPage"
				onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="200">200</option>
			</select> <span>条，共${totalCount}条</span>
		</div>

		<div class="pagination" targetType="navTab" totalCount="${totalCount}"
			numPerPage="${numPerPage}" pageNumShown="10"
			currentPage="${currentPage}"></div>

	</div>
</div>

